//
//  FeedBackVC.m
//  UILbrary
//
//  Created by Apple on 2023/3/2.
//  Copyright © 2023 mac. All rights reserved.
//

#import "FeedBackVC.h"
#import "JXFeedBackHandle.h"
#import "JXFeedBackConfigModel.h"

@interface FeedBackVC ()

@property (nonatomic, strong) JXFeedBackHandle *handle;
@property (nonatomic, strong) JXFeedBackConfigModel *configModel;

@end

@implementation FeedBackVC

//MARK: - system

- (void)dealloc
{
    NSLog(@"%@ %s",NSStringFromClass([self class]), __func__);
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self p_loadConfig];
    [self p_configSubviews];
}

- (void)p_loadConfig
{
    self.title = @"意见反馈";
    self.view.backgroundColor = [UIColor whiteColor];
    [self.handle configWithData:self.configModel];
}

- (void)p_configSubviews
{
    [self.view addSubview:self.handle.view];
    [self.handle.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self.view).insets(UIEdgeInsetsMake(Space_middle, 0, 0, 0));
    }];
}

- (JXFeedBackHandle *)handle
{
    if(!_handle){
        _handle = [JXFeedBackHandle new];
    }
    return _handle;
}

- (JXFeedBackConfigModel *)configModel
{
    if(!_configModel){
        _configModel = [JXFeedBackConfigModel new];
    }
    return _configModel;
}

@end
